import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/components/Login'
import User from '@/components/User'
import AddDepart from '@/components/AddDepart'
import AddUser from '@/components/AddUser'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/Login',
      name: 'Login',
      component: Login
    },
    {
      path: '/User',
      name: 'User',
      component: User
    },
    {
      path: '/AddDepart',
      name: 'AddDepart',
      component: AddDepart
    },
    {
      path: '/AddUser',
      name: 'AddUser',
      component: AddUser
    }
  ]
})
